﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using BaseThing.Definitions;
using BaseThing.Game;

namespace BaseThing.Engine
{
    class GUIBaseScreen
    {
        protected Sprite backGround;
        protected Color backColor;
        protected bool visible;

        public GUIBaseScreen()
        {
            visible = true;
            backGround = new Sprite(@"Textures\sprites", 12, 1, 6);
            backColor = new Color();
        }

        public Sprite BackGround
        {
            set { backGround = value; }
            get { return backGround; }
        }

        public Color BackColor
        {
            set { backColor = value; }
            get { return backColor; }
        }

        public bool Visible
        {
            set { visible = value; }
            get { return visible; }
        }

        public virtual void Update(GameTime gameTime, ref GameStates gameState)
        {
            backGround.Update(gameTime);
        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            if (visible)
            {
                backGround.Draw(spriteBatch);
            }
        }
    }
}
